{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <div class="row">
            <div class="col-md-12">
                <form action="{:url('admin/role/update', ['id'=>$data['id']])}" method='post' class="form-horizontal">

                    <div class="form-group" style="">
                        <label for="" class="col-sm-2 control-label">角色名：</label>
                        <div class="col-sm-4">
                            <input type="text" name="name" class="form-control" value="{$data['name']}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">说明：</label>
                        <div class="col-sm-4">
                            <input  type="text" name="remark" class="form-control" value="{$data['remark']}">
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            <input type="radio" name="status" value="1" {if $data['status'] == 1 }checked{/if}>启用
                            <input type="radio" name="status" value="0" {if $data['status'] == 0 }checked{/if}>禁用
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-4">

                            <button type="submit" class="btn btn-default">修 改</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>

{/block}